package com.kunya.product.dao.specification;

import com.kunya.product.po.Kind;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KindMapper {
    int deleteByPrimaryKey(@Param("kindId") Long kindId,@Param("table_prefix") String table_prefix);

    int insert(@Param("record") Kind record,@Param("table_prefix") String table_prefix);

    int insertSelective(@Param("record") Kind record,@Param("table_prefix") String table_prefix);

    Kind selectByPrimaryKey(@Param("kindId") Long kindId,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeySelective(@Param("record") Kind record,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("record") Kind record,@Param("table_prefix") String table_prefix);

    /**
     * @author zp
     * @Description: 根据商品id集合，kind的status查询kind实体
     * @param
     * @date 2018/7/4 13:14
     */
    List<Kind> getListByIdsAndStatus(@Param("productIds") List<Long> productIds,@Param("status") Byte status,@Param("table_prefix") String tablePrefix);
}